/**
 * Created by CK on 2016/10/17.
 */
var list;
$(document).ready(function () {
    list = $('#List');
    $('.xh-datagrid-toolbar').parseToolbar(afterParseToolbar);
    list.initDataGrid('getAppLocateData').setSelectThenEnable(['bt_list_del']);
    DataGrid.onLoadSuccess = function(){
        $('.datagrid-btable > tbody > .datagrid-row > td[field=sLogUrl] > .datagrid-cell').each(function(){
            $(this).html("<a style='font-color:red' target='_blank' href='"+$(this).text()+"'>"+$(this).text()+"</a>");
        });
    };
    $('#bt_list_del').click(function () {
        var ids = list.getDataGridSelectedFields('iALId');
        $.overtFun.clickDelList(ids, baseUrl + 'Log/delAppLocateData');
    });
});
function afterParseToolbar()
{
    $.overtFun.vagueSearch(list);
}